package com.coffee.order.api.inquire.service;

import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;
import com.coffee.order.api.inquire.query.InquireOrderDeliveryDemandQuery;
import com.coffee.order.api.inquire.result.InquireOrderDeliveryDemandResult;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface InquireOrderDeliveryDemandService {

	Page<InquireOrderDeliveryDemandResult> getPager(InquireOrderDeliveryDemandQuery param, PagerInfo pr);
	
	Integer count(InquireOrderDeliveryDemandQuery param);
	
	InquireOrderDeliveryDemandResult getDetail(Integer id);
	
	List<InquireOrderDeliveryDemandResult> getList(InquireOrderDeliveryDemandQuery param, PagerInfo pr);
	
	List<InquireOrderDeliveryDemandResult> getList(InquireOrderDeliveryDemandQuery param);
	
	List<InquireOrderDeliveryDemandResult> getList();

	void delete(Integer id);

	void addOrUpdate(InquireOrderDeliveryDemandResult result)throws BusinessException;
	
	Map<Integer,InquireOrderDeliveryDemandResult> getItemMap(Set<Integer> idSet);
	
	Map<Integer,InquireOrderDeliveryDemandResult> getItemMap();
	
}